import React from 'react';
import {createRoot} from 'react-dom/client';
import "./assets/styles/css/index.css"
import "./assets/styles/scss/index.scss"
import "./assets/styles/theme/theme.scss"

import {BrowserRouter} from "react-router-dom";
import store from "@/store";
import {Provider} from "react-redux";
import App from "@/App.tsx";
import config from "@/utils/config.ts";

const root = document.getElementById('root');
if (root) {
    createRoot(root).render(
        <Provider store={store}>
            {/*当然是想力注入对应的 router */}
            <BrowserRouter basename={config.baseUrl}>
                <App/>
            </BrowserRouter>
        </Provider>
    )
}
